#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_Makefile.dpatch by  <varunhiremath@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad fpc-2.2.0~/fpcdocs/Makefile fpc-2.2.0/fpcdocs/Makefile
--- fpc-2.2.0~/fpcdocs/Makefile	2007-08-25 10:18:13.000000000 -0300
+++ fpc-2.2.0/fpcdocs/Makefile	2007-10-01 23:53:06.000000000 -0300
@@ -1852,7 +1852,7 @@
 	@echo ' pdfdist       : pdf, and archive result.'
 clean:
 	-rm -f preamble.inc date.inc messages.inc rtl.inc
-	-rm -f *.4tc *.4ct *.css *.lg *.tmp *.xref *.kwd *.xct
+	-rm -f *.4tc *.4ct *.css *.lg *.tmp *.xref *.kwd *.xct *.haux *.hind
 	-rm -rf $(DOCS)
 	-rm -f $(CHK) $(TOC) $(LOG) $(DVI) $(PDF) $(AUX) $(OUT) $(PS) $(HTML) *.i* $(LOT) $(TXT)
 	-rm -f $(notdir $(wildcard styles/*.sty))
@@ -2152,10 +2152,8 @@
 htmlinstall: html
 	install -d -m 755 $(INSTALL_DOCDIR)
 	cp fpctoc.html $(INSTALL_DOCDIR)
-	install -d -m 755 $(INSTALL_DOCDIR)/buttons
-	cp buttons/*.* $(INSTALL_DOCDIR)/buttons
-	install -d -m 755 $(INSTALL_DOCDIR)/pics
-	cp pics/*.* $(INSTALL_DOCDIR)/pics
+	cp -R buttons $(INSTALL_DOCDIR)
+	cp -R pics $(INSTALL_DOCDIR)
 	cp -R $(HTML) $(INSTALL_DOCDIR)
 	find $(INSTALL_DOCDIR) -name 'CVS' -or -name '*.eps' | xargs -n1 rm -rf
 install:
